@charset "utf-8";

/*!
 * Created by Toma on 2016-6-21 10:30:30
 * 月子中心
 */

$theme: #00b0af;
$red: #e60012;

@import "toma";
@include reset();
@include tools();
@import "mdater";

/* common */
%com-bg{
  background-repeat:no-repeat;
  background-position: top center;
  -webkit-background-size: 100% auto;
  background-size: 100% auto;
}
body{
  background-color: #e7f5f9;
  background-image: url(../img/bg.jpg);
  @extend %com-bg;
  color: #333;
  padding-top: 23%;
}
.container{
  margin: 0 .75rem;
}


/* 起始页 */
.banner{
  img{
    width: 100%;
  }
  .banner-tit{
    text-align: center;
    font-size: 16px;
    color: $theme;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: .75rem;
  }
}
.user-header{
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  i{
    display: block;
    width: 100%;
    height: 100%;
    background-size:cover;
  }
}
.user-name{
  display: inline-block;
  font-size: .8rem;
}
.user-info{
  position: relative;
  margin-bottom: .75rem;
  padding-left: .25rem;
  .lit-tit{
    margin-top: .6rem;
    font-size: .8rem;
  }
  .goods{
    position: absolute;
    top: -0.75rem;
    right: 0;
    img{
      width: 5.25rem;
    }
  }
}
.intro{
  position: relative;
  margin-bottom: 0.5rem;
  img{
    width: 100%;
  }
  #popbtn{
    display: block;
    position: absolute;
    top: 6.75rem;
    left: 50%;
    margin-left: -1.75rem;
    width: 3.2rem;
    height: 1.2rem;
    z-index: 5;
  }
}

/* 按钮 */
.btn-group{
  margin-bottom: 0.75rem;
  text-align: center;
}
.btn{
  display: inline-block;
  width: 5.4rem;
  height: 1.8rem;
  line-height: 1.75rem;
  text-align: center;
  border: 1px solid $theme;
  font-size: 0.8rem;
  color: $theme;
  border-radius: 0.25rem;
  margin: 0 auto;
}
.btn-blod{
  background-color: $theme;
  color: #fff;
}
.btn-white{
  background-color: #fff;
  color: $theme;
}



/* 弹框 */
.pop{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  .pop-mask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
  }
  .pop-content{
    position: absolute;
    width: 90%;
    height: 80%;
    margin-left: 5%;
    margin-top: 10%;
    padding: 0.75rem;
    background-color: $theme;
    z-index: 80;
    color: #fff;
    border-radius: 0.25rem;
  }
  .scorllbox{
    height: 90%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .close{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
  }

  .rule-h2{
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .rule-p{
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  .pop-btn{
    margin-top: 1.25rem;
  }
}

/* 用户中心 */
.u-index{
  margin-bottom: 0.75rem;
}
.u-title{
  height: 1.25rem;
  width: 100%;
  background-size:contain;
  background-repeat:no-repeat;
  margin-bottom: 0.6rem;
  &.start{
    background-image: url(../img/xxzs.png);
  }
  &.coupon{
    background-image: url(../img/yhq.png);
  }
  &.annal{
    background-image: url(../img/hdjl.png);
    margin-bottom: 1.25rem;
  }
}
.u-txt{
  font-size: 0.7rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.startlist{
  width: 100%;
  height: 2.4rem;
  background-image: url(../img/starts.png);
  background-size:contain;
  background-repeat:no-repeat;
  span{
    color: #fff;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-left: 1rem;
    letter-spacing: 1.04rem;
  }
  a{
    line-height: 2.4rem;
    font-size: 0.9rem;
    color: #333;
    text-decoration: underline;
  }
}
.u-coupon-con{
  position: relative;
}
.ticket-box{
  margin-bottom: 0.4rem;
  span{
    font-weight: bold;
    font-size: 1rem;
  }
}
.ticet{
  display: inline-block;
  width: 6.2rem;
  height: 3.25rem;
  background-size:contain;
  vertical-align: middle;
  &.p-20{
    background-image: url(../img/p_20.png);
    & + span{
      color: #debe6a;
    }
  }
  &.p-10{
    background-image: url(../img/p_10.png);
    & + span{
      color: #989898;
    }
  }
  &.p-40{
    background-image: url(../img/p40.png);
    & + span{
      color: rgb(181,144,30);
    }
  }
}
.diapers{
  display: block;
  position: absolute;
  top: -1.4rem;
  right: 0;
  width: 7.1rem;
  height: 8.5rem;
  background-image: url(../img/diapers.png);
  -webkit-background-size:contain;
  background-size:contain;
  background-repeat: no-repeat;
}
.record-link{
  text-align: right;
  margin-bottom: 0.75rem;
  a{
    font-size: 0.8rem;
    color: #333;
    text-decoration: underline;
    margin-right: 0;
  }
}

/* 排行榜 */
.rank-window{
  background-image: url(../img/ranking.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 21.5rem;
}
.rank-box{
  padding-top: 4.65rem;
  li{
    height: 2.75rem;
    line-height: 2.75rem;
    background: url(../img/layer.png) no-repeat 0.85rem center/contain;
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    font-size: 0;
  }
}
.rank-num{
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid $theme;
  vertical-align: middle;
  line-height: 1rem;
  text-align: center;
  color: $theme;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.6rem;
  margin-right: 0.4rem;
}
.rank-head{
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.4rem;
}
.rank-name{
  width: 8.4rem;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.4rem;
}
.rank-start{
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.3rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  font-size: 0.7rem;
  vertical-align: middle;
  background: url(../img/start.png) no-repeat center/contain;
}
.pints{
  padding-top: 0.35rem;
  text-align: center;
  margin-left:-1.4rem;
  i{
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    background-color: $theme;
    border-radius: 50%;
    margin: 0.2rem;
  }
}

/* 活动记录页 */
.anl-item{
  position: relative;
  min-height: 6rem;
  background-color: $theme;
  border-radius: 0.4rem;
  padding: 0.75rem;
  font-size: 0;
  margin-bottom: 0.75rem;
  dt,dd{
    display: inline-block;
    vertical-align: middle;
  }
  .item-logo{
    width: 4rem;
  }
  dd{
    padding-left: 0.75rem;
  }
  p{
    font-size: 0.7rem;
    color: #fff;
    line-height: 1.6;
  }
  .item-a{
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.9rem;
    text-decoration: underline;
    color: #fff;
  }
}

/* 上传小票页 */
.sta-header{
  h2{
    font-size:0.8rem;
    margin-bottom: 0.6rem;
  }
  img{
    width: 65%;
    margin-bottom: 0.75rem;
  }
}

/* 输入框 */
.input-group{
  margin-bottom: .5rem;
  .input-label{
    display: inline-block;
    width: 4.5rem;
    font-size: .8rem;
    @extend .text-truncate;
    vertical-align: middle;
    color: #4d4d4d;
    text-align: right;
  }
  .input-control{
    width: 12rem;
    height: 1.8rem;
    line-height: 1.8rem;
    border: none;
    border-radius: .25rem;
    padding-left: .75rem;
    font-size: .75rem;
    background: url(../img/arrow.png) no-repeat 94% 50%;
    background-color: #dbdbdb;
    -webkit-background-size: (1.25rem/1.8) (.75rem/1.8);
    background-size: (1.25rem/1.8) (.75rem/1.8);
  }
  .input-lab{
    vertical-align: top;
  }
}
.input-list{
  display: inline-block;
  width: 12rem;
  font-size: .8rem;
  li{
    margin-bottom: .5rem;
  }
}

/* 上传图片组件 */
.addbtn-box{
  display: inline-block;
  vertical-align: middle;
  font-size:0;
  .addbtn{
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    border: 1px solid $theme;
    margin-right: 0.5rem;
    background: url(../img/ico.png) no-repeat -1.8rem center/auto 100%;
    &:first-child{
      background: url(../img/ico.png) no-repeat -0.1rem center/auto 100%;
    }
  }
}
.min-load{
  font-size: 0.6rem;
  line-height: 1.8;
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
  color: $theme;
}

/* 上传成功页 */
.c-tit{
  height: 2rem;
  margin-top: 2.2rem;
  margin-bottom: 1.5rem;
  &.sccg{
    background: url(../img/xpcg.png) no-repeat center/contain;
  }
  &.shcg{
    background: url(../img/success-page.png) no-repeat center/contain;
  }
  &.shsb{
    background: url(../img/erro.png) no-repeat center/contain;
  }
}
.info{
  min-height: 8rem;
  border: 2px solid $theme;
  border-radius: 0.4rem;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
}
.info-content{
  padding-top: 0.6rem;
  p{
    font-size:0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
  }
  span{
    color: $theme;
    text-decoration: underline;
  }
}

/* 时间轴 */
.lod{
  display: block;
  width: .4rem;
  height: .6rem;
  background-image: url(../img/key.png);
  -webkit-background-size: contain;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}
.timeline{
  padding-bottom: .75rem;

  .time-tit{
    text-align: center;
    font-size: .7rem;
    padding-bottom: 1.25rem;
  }
}
.linebox{
  position: relative;
  width: 100%;
  height: .7rem;
  border-radius: .7rem;
  border: 1px solid $theme;

  .before{
    position: absolute;
    display: block;
    width: 0;
    height: 100%;
    background-color: $theme;
    border-radius: .7rem;
  }
  .point{
    position: absolute;
    top: -1.1rem;
    left: 0;
    margin-left: -0.2rem;
    font-size: .55rem;
    &::before{
      content: attr(data-size);
      color: $theme;
    }
  }
  .lin-wite{
    position: absolute;
    top: 0;
    z-index: 12;
    width: 100%;
    font-size: 0.55rem;
    text-align: center;
  }
}

// 选择卖场控件
.stores{
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  .stores-mask{
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .7;
    z-index: 102;
  }
  .stores-content{
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -9.4rem;
    margin-left: -6.4rem;
    width: 12.8rem;
    min-height: 2rem;
    max-height: 18.8rem;
    background: #fff;
    z-index: 104;
    overflow: hidden;
    border-radius: .2rem;
    padding-bottom: .5rem;
    &:before{
      content:"";
      position: absolute;
      bottom: .5rem;
      left: 0;
      width: 100%;
      height: 1rem;
      background-image: -webkit-linear-gradient(top, rgba(255,255,255,0),rgba(255,255,255,1));
      background-image: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,1));
    }
  }
  .st-tit{
    color: $theme;
    font-size: .9rem;
    line-height: 1.8rem;
    border-bottom: 2px solid $theme;
  }
  .st-ul{
    max-height: 13.5rem;
    overflow-y: auto;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .layer{
    padding: .6rem;
    border-bottom: 1px dotted #ddd;
    &:last-child{
      border-bottom: none;
    }
    &:active{
      background: #ddd;
    }
  }
  .st-img{
    width: 3.5rem;
    height: auto;
    max-height: 1.7rem;
    vertical-align: middle;
    margin-right: .3rem;
  }
  .st-val{
    display: inline-block;
    font-size: .7rem;
  }

}
.table-cell{
  display: table-cell;
}
.ver-m{
  vertical-align: middle;
}
.bg-item{
  background-position: .3rem center !important;
  background-repeat: no-repeat !important;
  background-size: 3.5rem 1.5rem !important;
  padding-left: 4.2rem !important;
}

/* loading */
.loading{
  display: block;
  margin: 0 auto;
  margin-bottom: .5rem;
  width: 1.2rem;
  height: 1.2rem;
  background-image: url();
  -webkit-background-size: cover;
  background-size: cover;
  vertical-align: middle;
}
.loading{
  @include animation(rotate 3s linear infinite);
}
@-webkit-keyframes rotate{
  0%{ -webkit-transform: rotate3D(0,0,1,0deg);}
  50%{ -webkit-transform: rotate3D(0,0,1,-180deg);}
  100%{ -webkit-transform: rotate3D(0,0,1,-359deg);}
}
@keyframes rotate{
  0%{ transform: rotate3D(0,0,1,0deg);}
  50%{ transform: rotate3D(0,0,1,-180deg);}
  100%{ transform: rotate3D(0,0,1,-359.99deg);}
}

/* 分享 */
.share{
  position: fixed;
  top: 0;
  left:0;
  background-color: rgba(0, 0, 0, .8);
  width: 100%;
  height: 100%;
  text-align: center;
  img{
    width: 100%;
    margin-bottom: 1rem;
  }
  .btn{
    border-color: #fff;
    color: #fff;
  }
}

/* 又一个弹窗 */
.pop-in{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  .pop-mask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
  }
  .pop-content{
    position: absolute;
    top: 50%;
    left: 0;
    width: 90%;
    min-height: 9rem;
    margin-left: 5%;
    margin-top: -4.5rem;
    padding: 0.75rem;
    padding-top: 1.5rem;
    background-color: #fff;
    z-index: 80;
    color: #fff;
    border-radius: 0.25rem;
  }
  .input-group{
    text-align: center;
  }
  .btn-group{
    margin-bottom: 0;
  }
}